﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace SearchEngine.CMS.Client
{
    public partial class UcSearchForm : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            String querryString = "";
            if (!Page.IsPostBack)
            {
                if (Request.QueryString["Key"].ToString() != null)
                {
                    querryString = Request.QueryString["Key"].ToString();
                }
                this.txtvalues.Text = querryString;
            }
        }

        protected void txtvalue_TextChanged(object sender, EventArgs e)
        {

        }

        protected void btntim_Click(object sender, EventArgs e)
        {
            String QueryString = "";
            String chuoi = txtvalues.Text;
            if (Request.QueryString["Type"].ToString() != null)
            {
                QueryString = Request.QueryString["Type"].ToString();
            }
            Response.Redirect("DetailSearch.aspx?Type=" + QueryString + "&Key=" + chuoi + "&Sort=0&Page=1");
        }
    }
}